package com.ruoyi.labdata.mapper;

import java.util.List;

import com.ruoyi.labdata.domain.LabHolidayReservation;
import org.apache.ibatis.annotations.Param;

/**
 * 实验室是否可预约Mapper接口
 * 
 * @author jun.wang
 * @date 2022-04-15
 */
public interface LabHolidayReservationMapper 
{
    /**
     * 查询实验室是否可预约
     * 
     * @param dayId 实验室是否可预约ID
     * @return 实验室是否可预约
     */
    public LabHolidayReservation selectLabHolidayReservationById(Long dayId);

    /**
     * 查询实验室是否可预约列表
     * 
     * @param labHolidayReservation 实验室是否可预约
     * @return 实验室是否可预约集合
     */
    public List<LabHolidayReservation> selectLabHolidayReservationList(LabHolidayReservation labHolidayReservation);

    /**
     * 新增实验室是否可预约
     * 
     * @param labHolidayReservation 实验室是否可预约
     * @return 结果
     */
    public int insertLabHolidayReservation(LabHolidayReservation labHolidayReservation);

    /**
     * 修改实验室是否可预约
     * 
     * @param labHolidayReservation 实验室是否可预约
     * @return 结果
     */
    public int updateLabHolidayReservation(LabHolidayReservation labHolidayReservation);

    /**
     * 删除实验室是否可预约
     * 
     * @param dayId 实验室是否可预约ID
     * @return 结果
     */
    public int deleteLabHolidayReservationById(Long dayId);

    /**
     * 批量删除实验室是否可预约
     * 
     * @param dayIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteLabHolidayReservationByIds(Long[] dayIds);

    Integer checkLabDate(@Param("startDate") String startDate, @Param("classRoomId")Long classRoomId);

    LabHolidayReservation selectLabHolidayReservationByHolidayDateAndClassRoomId(@Param("holidayDate")String holidayDate, @Param("classRoomId")Long classRoomId);
}
